package com.chzc.fm.duotin.bean.mine;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by BillSinla on 2016/7/1.
 */
public class LikeBean {

    /**
     * id : 1450816
     * title : 来学一首适合夏天的小清新歌曲
     * album_title : 早安英文
     * image_url : http://c3.duotin.com/i1/DT/DivuYUIs__v4b2ab75CZO0UIbxfiqpPKMQ5sZYE6sXY.jpg
     * album_id : 86048
     */

    private String id;
    private String title;
    private String album_title;
    private String image_url;
    private String album_id;

    public static LikeBean objectFromData(String str) {

        return new Gson().fromJson(str, LikeBean.class);
    }

    public static List<LikeBean> arrayLikeBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<LikeBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlbum_title() {
        return album_title;
    }

    public void setAlbum_title(String album_title) {
        this.album_title = album_title;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getAlbum_id() {
        return album_id;
    }

    public void setAlbum_id(String album_id) {
        this.album_id = album_id;
    }
}
